package com.cleaningcloud.erp.domain;

import com.cleaningcloud.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cleaningcloud.common.core.annotation.Excel;

/**
 * 调拨明细对象 erp_ware_allocate_details
 *
 * @author cleaningcloud
 * @date 2024-10-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ErpWareAllocateDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 调拨明细ID */
    private Long wareAllocateDetailsId;

    /** 调拨ID */
    @Excel(name = "调拨ID")
    private Long wareAllocateId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long commodityId;

    /** 调拨数量 */
    @Excel(name = "调拨数量")
    private int wareAllocateNumber;

    private Long commodityUnitId;

    // 单位关系
    private int unitResult;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("wareAllocateDetailsId", getWareAllocateDetailsId())
                .append("wareAllocateId", getWareAllocateId())
                .append("commodityId", getCommodityId())
                .append("wareAllocateNumber", getWareAllocateNumber())
                .toString();
    }
}
